package test_package;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

/**

 * Created by IIGalytska on 31.03.14.

 */

public class ResultPage {

    private WebDriver driver;

    public ResultPage(WebDriver driver){

        this.driver = driver;

    }

    public String getFirstLink(){

        return driver.findElement(By.xpath("//*[@id=\"block_with_goods\"]/div[1]/div[1]/div[1]/div[1]/div/div/div[2]/a")).getText();

    };

}